

  export function getTeacherMenu(){
    const teacher = [
      {
        icon: 'home',
        text: '首页',
        url: 'pages/index/index',
        "iconPath": "../assets/tabbar/index.png",
        "selectedIconPath": "../assets/tabbar/index-select.png"
      },
      {
        icon: 'sort',
        text: '管理',
        url: 'pages/manage/manage',
        "iconPath": "../assets/tabbar/manage.png",
        "selectedIconPath": "../assets/tabbar/manage-select.png"
      },

      {
        icon: 'cart',
        text: '校园圈',
        url: 'pages/circle/circle',
        "iconPath": "../assets/tabbar/circle.png",
        "selectedIconPath": "../assets/tabbar/circle-select.png"
      },
      {
        icon: 'person',
        text: '个人中心',
        url: 'pages/myinfo/myinfo',
        "iconPath": "../assets/tabbar/myinfo.png",
        "selectedIconPath": "../assets/tabbar/myinfo-select.png"
      },
    ]
    return teacher
  }

  export function getStudentMenu(){
    const stu = [
      {
        icon: 'home',
        text: '首页',
        url: 'pages/index/index',
        "iconPath": "../assets/tabbar/index.png",
        "selectedIconPath": "../assets/tabbar/index-select.png"
      },
      {
        icon: 'cart',
        text: '校园圈',
        url: 'pages/circle/circle',
        "iconPath": "../assets/tabbar/circle.png",
        "selectedIconPath": "../assets/tabbar/circle-select.png"
      },
      {
        icon: 'person',
        text: '个人中心',
        url: 'pages/myinfo/myinfo',
        "iconPath": "../assets/tabbar/myinfo.png",
        "selectedIconPath": "../assets/tabbar/myinfo-select.png"
      },
    ]
    return stu;
  }



  export function getTabbarList(){
    let roleId = wx.getStorageSync('roleId')
    if(roleId < 3){
      return getTeacherMenu()
    }else {
      return getStudentMenu()
    }
  }
